import requests

#定义接口地址
url = "http://127.0.0.1:8000/register/"

#定义参数
data = {'username':"lala",'password':'123'}

#发送请求
res = requests.get(url,params=data)
print(res.text)
